package com.benmu.framework.extend.module;

import android.widget.Toast;

import com.taobao.weex.annotation.JSMethod;
import com.taobao.weex.common.WXModule;

/*自定义 Module */
public class MyTest extends WXModule {
    /**
     * 自定义 log答应日志方法
     * @param msg
     */
    @JSMethod(uiThread = true)
    public void prtinlog(String msg){
        Toast.makeText(mWXSDKInstance.getContext(),msg,Toast.LENGTH_SHORT).show();
    }

    // run js thread
    @JSMethod(uiThread = true)
    public void fireEventSyncCall(){
       //implement your module logic here
    }


}
